<HTML><HEAD>

<META http-equiv="Content-Type" content="text/html;charset=utf-8"/> 
<TITLE>Setting</TITLE>
</HEAD><BODY>
<A href="index.html">Home</A> <A href="setting.html">Setting</A> <A href="help.html">Help</A>
<HR/>

<DIV id="fanfou-account">

<INPUT type="checkbox" checked="true" id="fanfoucheck" onclick="fanfou_click();"/>
<SPAN>Fanfou account</SPAN><BR/>
<SPAN>Username:</SPAN><INPUT type="text" value="tujf.cn@gmail.com" id="fanfouuser"/>
<SPAN>password:</SPAN><INPUT type="password" value="tianxws" id="fanfoupass"/>
</DIV>

<SCRIPT type="text/javascript">

function fanfou_click(){
	var check_element = document.getElementById("fanfoucheck");
	var checked = check_element.checked;
	var father = check_element.parentNode;
	var clone = check_element.cloneNode(true);
	clone.setAttribute("checked",checked);
	father.insertBefore(clone,check_element);
	father.removeChild(check_element);
	
	var user_element = document.getElementById("fanfouuser"); 
   father = user_element.parentNode;
	clone = user_element.cloneNode(true);
	var user_text = user_element.value;
	if(!checked) user_text="";
	clone.setAttribute("value",user_text);
	father.insertBefore(clone,user_element);
	father.removeChild(user_element);
	
	
	var pass_element = document.getElementById("fanfoupass"); 
	var pass_text = pass_element.value;
	if(!checked) pass_text="";
	father = pass_element.parentNode;
	clone = pass_element.cloneNode(true);
	clone.setAttribute("value",pass_text);
	father.insertBefore(clone,pass_element);
	father.removeChild(pass_element);
}

</SCRIPT></BODY></HTML>